/* components/ua-card-item/ua-card-item.component.wxss */
:host {
  display: block;
  width: 100%;
  padding: 2px;
  box-sizing: border-box;
}

.card {
  display: flex;
  flex-direction: row;
  background: var(--bg-main);
  padding: 4px;
  border-radius: 0.5rem;
  position: relative;
  // min-height: 310rpx;

  .hint {
    display: inline-flex;
    position: absolute;
    right: 0px;
    bottom: 0;
    height: 1rem;
    width: 1rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-top-left-radius: 0.5rem;
    font-size: 0.7em;
    justify-content: center;
    align-items: center;
  }

  .card-img {
    display: inline-flex;
    width: calc(250rpx - 12px);
    flex-direction: column;
    align-items: center;
    position: relative;

    .cover {
      width: 100%;
      height: 310rpx;
    }

    .grey {
      filter: brightness(0.7);
    }
  }

  .card-effect {
    display: inline-flex;

    .detail {
      display: inline-block;
      height: 310rpx;
      width: 500rpx;
      padding-left: 4px;
      box-sizing: border-box;

      .info {
        box-sizing: border-box;
        height: 100%;
        width: 100%;
        line-height: 1.2rem;
        overflow-x: hidden;
        overflow-y: scroll;
      }

      .block {
        display: block;
        width: 100%;
        height: 1rpx;
      }

      .inline {
        display: inline;
        position: relative;
        word-break: break-all;
        line-height: 1rem;

        .inline-text {
          font-size: 0.8em;
          color: rgba(255, 255, 255, 0.8);
        }

        .i {
          margin-left: 0.5rem;
          color: var(--color-h3);
        }

        .inline-tag {
          display: inline-flex;
          color: rgba(255, 255, 255, 0.8);
          align-items: center;
        }
      }

      .inline.img {
        display: inline-block;
        padding: 0 2px;
        justify-content: center;
        align-items: center;

        .inline-img {
          height: 1rem;
          vertical-align: middle;
        }
      }

      .inline.l {

        .inline-text {
          font-size: 12px;
        }
      }

    }

    .detail.edit {
      height: calc(310rpx + 2.5rem);
    }
  }
}

.card.small {
  // min-height: 290rpx;

  .card-img {
    width: calc(187.5rpx - 12px);
  }


  .card-effect {
    .detail {
      height: 295rpx;
      width: 560rpx;
    }
  }
}

.name {
  font-size: 14px;
}

.tag {
  background-color: var(--color-h2);
  padding: 2px 4px;
  border-radius: 0.25rem;
  font-size: 10px;

  .cell {
    padding: 2px 4px;
    background-color: var(--bg-main);
    color: white;
    margin-right: 4px;
    border-radius: 0.25rem;
  }
}

.border {
  background-color: var(--color-h2);
  margin: 2px 0;
}

.color.Purple {
  color: #D03AC0 !important;
}

.color.Red {
  color: #FF4566 !important;
}

.color.Green {
  color: #47E299 !important;
}

.color.Yellow {
  color: #FEF060 !important;
}

.color.Blue {
  color: #3CC2FF !important;
}


.btn-bar {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  padding-top: 0.25rem;

  .item-hint-text {
    color: white;
    background-color: black;
    height: 1.5rem;
    width: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
  }

  .item-hint-text.has-card {
    // background-color: var(--color-danger);
  }
}

.btn-max {
  position: absolute;
  bottom: 2.5rem;
}